#!/usr/bin/env python

import sys
print "-Test to be written (always success!)"
sys.path.append("../../../bindings/python/")

from odapi import OpenDomoAPI

if len(sys.argv) != 5:
        print "Missing parameters, usage: run.py [IP] [PORT] [USER] [PASS]";
        sys.exit(0)

# Params from command line
ip=sys.argv[1]
port=sys.argv[2]
user=sys.argv[3]
password=sys.argv[4]

odapi = OpenDomoAPI(ip,port,"no")
if odapi.bLoginWithCredentials(user,password) != True:
	print "  -Log in failed"
	sys.exit(-1)


sys.exit(0)
